import { terser } from 'rollup-plugin-terser'
import commonjs from 'rollup-plugin-commonjs'

export default {
    input: 'src/index.js',
    output: [
        {
            file: 'dist/bundle.esm.js',
            format: 'esm',
        },
        {
            file: 'dist/bundle.cjs.js',
            format: 'cjs',
        },
    ],
    plugins: [
        commonjs(),
        terser()
    ]
}